package org.hackystat.sdsa.analyzer.control.compressor;

import org.junit.Test;
import static org.junit.Assert.assertEquals;

/**
 * Test the compression of continuous refactoring activities.
 * 
 * @author hongbing
 *
 */
public class TestRefactoringCompressor extends CompressorTestCommon {
  /**
   * Test refactoring compression algorithm.
   * 
   * @throws Exception If problem occurs.
   */
  @Test public void testRefactorCompression() throws Exception {
     RefactoringCompressor compressor = new RefactoringCompressor();
     assertEquals("Test before refactor compression", 3, super.refactoringActivityList.size());
     compressor.compress(super.refactoringActivityList);
     assertEquals("Test after refactor compression", 1, super.refactoringActivityList.size());
  }
}
